package org.performancetracker.jdbc4;

import java.sql.*;
import java.math.BigDecimal;
import java.io.InputStream;
import java.io.Reader;
import java.util.Calendar;
import java.net.URL;

/**
 * @author: jaronschut
 */

public class PreparedMonitoringStatement extends AbstractPreparedMonitoringStatement implements PreparedStatement {

    private final PreparedStatement realStatement;
    private final Connection realConnection;

    /**
     * To override in any subclass.
     *
     * @return
     */
    @Override
    protected PreparedStatement getRealStatement() {
        return realStatement;
    }

    /**
     * To override in any subclass.
     *
     * @return
     */
    @Override
    protected Connection getRealConnection() {
        return realConnection;
    }
    /**
     * Relegate to super class constructor.
     *
     * @param statement
     * @param connection
     */
    protected PreparedMonitoringStatement(PreparedStatement statement, Connection connection) {
        realStatement = statement;
        realConnection = connection;
    }
}
